package com.lcj.aoch.rule.db.pojo;

import java.io.Serializable;
import java.util.Date;

public class CancelRuleEntity implements Serializable {
  private String rule;
  
  private String code;
  
  private String name;
  
  private Date createTime;
  
  private Byte type;
  
  private static final long serialVersionUID = 1L;
  
  private Byte status;
  
  private Long id;
  
  public void setRule(String rule) {
    this.rule = rule;
  }
  
  public void setCode(String code) {
    this.code = code;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }
  
  public void setType(Byte type) {
    this.type = type;
  }
  
  public void setStatus(Byte status) {
    this.status = status;
  }
  
  public void setId(Long id) {
    this.id = id;
  }
  
  public CancelRuleEntity(String rule, String code, String name, Date createTime, Byte type, Byte status, Long id) {
    this.rule = rule;
    this.code = code;
    this.name = name;
    this.createTime = createTime;
    this.type = type;
    this.status = status;
    this.id = id;
  }
  
  public CancelRuleEntity() {}
  
  public String toString() {
    return "CancelRuleEntity(rule=" + getRule() + ", code=" + getCode() + ", name=" + getName() + ", createTime=" + getCreateTime() + ", type=" + getType() + ", status=" + getStatus() + ", id=" + getId() + ")";
  }
  
  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof CancelRuleEntity))
      return false; 
    CancelRuleEntity other = (CancelRuleEntity)o;
    if (!other.canEqual(this))
      return false; 
    Object this$type = getType(), other$type = other.getType();
    if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type))
      return false; 
    Object this$status = getStatus(), other$status = other.getStatus();
    if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status))
      return false; 
    Object this$id = getId(), other$id = other.getId();
    if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
      return false; 
    Object this$rule = getRule(), other$rule = other.getRule();
    if ((this$rule == null) ? (other$rule != null) : !this$rule.equals(other$rule))
      return false; 
    Object this$code = getCode(), other$code = other.getCode();
    if ((this$code == null) ? (other$code != null) : !this$code.equals(other$code))
      return false; 
    Object this$name = getName(), other$name = other.getName();
    if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name))
      return false; 
    Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
    return !((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof CancelRuleEntity;
  }
  
  public int hashCode() {
    int PRIME = 59;
    int result = 1;
    Object $type = getType();
    result = result * 59 + (($type == null) ? 43 : $type.hashCode());
    Object $status = getStatus();
    result = result * 59 + (($status == null) ? 43 : $status.hashCode());
    Object $id = getId();
    result = result * 59 + (($id == null) ? 43 : $id.hashCode());
    Object $rule = getRule();
    result = result * 59 + (($rule == null) ? 43 : $rule.hashCode());
    Object $code = getCode();
    result = result * 59 + (($code == null) ? 43 : $code.hashCode());
    Object $name = getName();
    result = result * 59 + (($name == null) ? 43 : $name.hashCode());
    Object $createTime = getCreateTime();
    return result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
  }
  
  public String getRule() {
    return this.rule;
  }
  
  public String getCode() {
    return this.code;
  }
  
  public String getName() {
    return this.name;
  }
  
  public Date getCreateTime() {
    return this.createTime;
  }
  
  public Byte getType() {
    return this.type;
  }
  
  public Byte getStatus() {
    return this.status;
  }
  
  public Long getId() {
    return this.id;
  }
}
